package top.xchch.creational.builder;

/**
 * 具体的建造者
 */
public class CommonHouse extends BaseBuilder {
    @Override
    protected void buildBasic() {
        house.setBasic("5米的地基");
        System.out.println("普通房子打地基5米");
    }

    @Override
    protected void buildWalls() {
        house.setWall("1米的墙");
        System.out.println("普通房子砌墙1米");
    }

    @Override
    protected void roofed() {
        house.setRoofed("屋顶是瓦片");
        System.out.println("普通房子的屋顶是瓦片");
    }
}
